TEMPLATE        = app
TARGET          = maktab

QT              += sql

HEADERS         = src/browser.h src/connectionwidget.h src/qsqlconnectiondialog.h
SOURCES         = src/main.cpp src/browser.cpp src/connectionwidget.cpp src/qsqlconnectiondialog.cpp
FORMS           = ui/browserwidget.ui ui/qsqlconnectiondialog.ui

build_all:!build_pass {
    CONFIG -= build_all
    CONFIG += release
}

# install
target.path = . 
sources.files = $$SOURCES $$HEADERS $$FORMS *.pro
sources.path = .
INSTALLS += target sources

wince*: {
    CONFIG(debug, debug|release):sqlPlugins.sources = $$QT_BUILD_TREE/plugins/sqldrivers/*d4.dll
    CONFIG(release, debug|release):sqlPlugins.sources = $$QT_BUILD_TREE/plugins/sqldrivers/*[^d]4.dll
    sqlPlugins.path = sqldrivers
    DEPLOYMENT += sqlPlugins
}
